package thread;

public class Demo11 {
    public static void main(String[] args) throws InterruptedException {
//        System.out.println("开始计时"+System.currentTimeMillis());
        long beg = System.currentTimeMillis();
        Thread.sleep(1000);
        long end = System.currentTimeMillis();
        System.out.println("时间="+(beg-end));
    }
}
